package pictogram.front;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;


public class MiddleFragment extends Fragment {
	
	private Animation fade25;
	private Animation fade15;
	private Animation fade05;
	private ImageView view;
	
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
	{
		View view = inflater.inflate(R.layout.middle_fragment, container, false);	
		
		 fade25 = AnimationUtils.loadAnimation(getActivity(), R.anim.fade_in);
		
		return view;
	}
	
	
		
	
	public void startAnimation25()
	{
		view.startAnimation(fade25);
	}
	
	public void setImage(Bitmap bm)
	{
		view = (ImageView)getView().findViewById(R.id.imageViewMiddle);
		view.setImageBitmap(bm);
	}

}

